package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Defect;
import com.example.demo.common.entity.Inclusion;
import com.example.demo.common.mapper.InclusionMapper;
import com.example.demo.common.service.InclusionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class InclusionServiceImpl implements InclusionService {
    @Resource
    InclusionMapper inclusionMapper;
    @Override
    public void saveInclusion(Inclusion inclusion){
        inclusionMapper.insert(inclusion);
    }
    @Override
    public void updateInclusion(Inclusion inclusion){
        inclusionMapper.updateById(inclusion);
    }
    @Override
    public void deleteById(Long id){
        inclusionMapper.deleteById(id);
    }

}
